package com.dragon.modules.yuegou.mapper.wallet;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dragon.modules.yuegou.entity.wallet.MemberCardCancelEntity;
import com.dragon.modules.yuegou.model.wallet.MemberCardCancel;
import com.dragon.modules.yuegou.query.wallet.CardCancelQuery;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 后台退卡（取消福利卡发放） Mapper接口
 *
 * @author pbuilder generated
 * @date 2019-05-27 11:30:24
 * @version 2.0
 */
@Component("waltMemberCardCancelMapper")
public interface MemberCardCancelMapper extends BaseMapper<MemberCardCancelEntity> {

    /**
     * 查询退卡记录
     * @param page
     * @param query
     * @return
     */
    IPage<MemberCardCancel> searchCancelRecord(IPage page, @Param("query") CardCancelQuery query);

    /**
     * 导出退卡记录
     * @param query
     * @return
     */
    List<MemberCardCancel> searchCancelRecord(@Param("query") CardCancelQuery query);

}
